<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://shale.apache.org/validator">

<f:view>
<f:loadBundle var="text" basename="#{userTest.bundleName}"/>
<head>
    <title>#{text['demographics.head.title']}</title>
    <meta name="heading" content="#{text['demographics.title']}"/>
</head>

<body>

<h:form>


<p><h:outputText value="#{text['demographics.body']}" rendered="#{not demographics.submit}"/></p>

<table class="inputFieldsTable">
<c:forEach var="menu" items="#{demographics.selectMenus}">
	<tr>
		<td><h:outputLabel styleClass="desc" value="#{menu.description}"/></td>
		<td>
			<h:selectOneMenu value="#{menu.selection}" styleclass="select">
				<f:selectItems value="#{menu.menuData}"/>
			</h:selectOneMenu>
		</td>
	</tr>
</c:forEach>
</table>

<h:commandButton value="Save" action="#{demographics.save}" styleClass="button_inline" rendered="#{not demographics.submit}"/>
<h:commandButton value="Cancel" action="demographics.cancel" styleClass="button_inline"/>
					
</h:form>




</body>
</f:view>

</html>



